import React from 'react';
import { Link } from 'react-router-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faLock, faHome } from '@fortawesome/free-solid-svg-icons';

const Forbidden: React.FC = () => {
  return (
    <div className="min-h-screen flex items-center justify-center bg-gray-50">
      <div className="max-w-md w-full text-center">
        <div className="mb-8">
          <FontAwesomeIcon 
            icon={faLock} 
            className="text-red-500 text-6xl mb-4"
          />
          <h1 className="text-6xl font-extrabold text-gray-900 mb-2">403</h1>
          <h2 className="text-2xl font-bold text-gray-800 mb-4">访问被拒绝</h2>
          <p className="text-gray-600 mb-8">
            很抱歉，您没有权限访问此页面。如果您认为这是一个错误，请联系系统管理员。
          </p>
          
          <Link 
            to="/" 
            className="inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
          >
            <FontAwesomeIcon icon={faHome} className="mr-2" />
            返回首页
          </Link>
        </div>
      </div>
    </div>
  );
};

export default Forbidden; 